package org.dub.provider.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;


import org.dub.api.entity.HelloRes;
import org.dub.api.entity.Userinfo;
import org.dub.api.service.UserService;
import org.springframework.stereotype.Service;

/**
 * Created By bobin on 2024/7/26
 */
@Slf4j
@DubboService
@Service
public class UserServiceImpl implements UserService {

    @Override
    public HelloRes SayHello(Userinfo userinfo) {
        log.info("hello " + userinfo.getUsername()) ;
        return HelloRes.newBuilder().setName("hello " + userinfo.getUsername()).build();
    }
}
